{{- if hasKey .Values.certManager "cloudDNSServiceAccount" }}
---
apiVersion: v1
kind: Secret
type: Opaque
metadata:
  name: clouddns
  namespace: d8-cert-manager
  {{- include "helm_lib_module_labels" (list . (dict "app" "cert-manager")) | nindent 2 }}
data:
  key.json: {{ .Values.certManager.cloudDNSServiceAccount | quote }}
{{- end }}
